//
//  ViewController.m
//  Button Fun
//
//  Created by yilee on 13-1-11.
//  Copyright (c) 2013年 yilee. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (IBAction)buttonPressed:(UIButton *)sender {
    NSString *title = [sender titleForState:UIControlStateNormal];
    textStatus.text = [NSString stringWithFormat:@"%@ button pressed.", title];
}

@synthesize textStatus;

- (void)viewDidUnload
{
    [self setTextStatus:nil];
    [super viewDidUnload];
}

@end
